package com.loadburn.heron.shiro.config;

import org.apache.commons.io.IOUtils;
import org.apache.shiro.config.Ini;

import java.io.InputStream;

/**
 * @author slacrey (scstlinfeng@yahoo.com)
 *         Date: 13-12-23
 */
public class HeronIni extends Ini {

    public static Ini LoadIniOfInputStream(InputStream inputStream) {
        try {
            HeronIni ini = new HeronIni();
            ini.load(inputStream);
            return ini;
        } finally {
            IOUtils.closeQuietly(inputStream);
        }
    }


}
